//
//  InChannelSoundCollectionViewCell.m
//  Inner  Voice
//
//  Created by Martin.Wang on 16/2/29.
//  Copyright © 2016年 徐海宇. All rights reserved.
//

#import "InChannelSoundCollectionViewCell.h"

#import "UIImageView+WebCache.h"

@implementation InChannelSoundCollectionViewCell

- (void)awakeFromNib {
    
    self.soundImage.image = [UIImage imageNamed:@"1.jpg"];
    
}

- (void)loadImageWithStr:(NSString*)str{
    
    NSURL *url = [NSURL URLWithString:str];
//    给imaageView加载网络图片，之前先用1.jpg
    [self.soundImage sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"1.jpg"]];
    self.soundImage.layer.cornerRadius = 8;
    self.soundImage.layer.masksToBounds = YES;
    [self.soundImage.layer setBorderWidth:2];
    [self.soundImage.layer setBorderColor:(__bridge CGColorRef _Nullable)([UIColor blueColor])];
    self.soundImage.contentMode = UIViewContentModeScaleAspectFill;
    //    画圆
}

@end
